﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jalal.Library.Web;

namespace BCGC.BLL.Helper
{
    public class MemberBasePage : BasePage
    {
        protected override void OnPreInit(EventArgs e)
        {
            Theme = "UserDefault";
            base.OnPreInit(e);
        }

        protected override void OnInit(EventArgs e)
        {
            if (!SessionManager.IsUserLoggedIn)
            {
                SessionManager.ReturnUrl = Request.RawUrl;
                Response.Redirect(CustomSiteMap.Login);
            }
            base.OnInit(e);
        }
    }
}
